﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using CoderJoe.WoW.Services;

namespace CoderJoe.WoW.GearManager
{
    public class ItemToolTipModel
        : Model
    {
        public static Color DefaultColor = Color.White;

        public string Name
        {
            get { return GetValue("Name", String.Empty); }
            set { SetValue("Name", value); }
        }

        public Color NameColor
        {
            get { return GetValue("NameColor", DefaultColor); }
            set { SetValue("NameColor", value); }
        }

        public string PickupType
        {
            get { return GetValue("PickupType", String.Empty); }
            set { SetValue("PickupType", value); }
        }
        public Color PickupTypeColor
        {
            get { return GetValue("PickupTypeColor", DefaultColor); }
            set { SetValue("PickupTypeColor", value); }
        }

        public string SlotType
        {
            get { return GetValue("SlotType", String.Empty); }
            set { SetValue("SlotType", value); }
        }

        public Color SlotTypeColor
        {
            get { return GetValue("SlotTypeColor", DefaultColor); }
            set { SetValue("SlotTypeColor", value); }
        }

        public string ItemType
        {
            get { return GetValue("ItemType", String.Empty); }
            set { SetValue("ItemType", value); }
        }

        public Color ItemTypeColor
        {
            get { return GetValue("ItemTypeColor", DefaultColor); }
            set { SetValue("ItemTypeColor", value); }
        }

        internal void Load(ItemDetail item)
        {
            this.ItemType = item.SubClassName;
            this.Name = item.Name;
        }
    }
}
